package com.csst.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity(name="Account")

@Table(name="Account")
public class Account implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6306429079611572549L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name = "AccountId",nullable=true)
	private Integer accountId;
	@Column(name = "Accpassword",nullable=true)
	private String accpassword;
	@Column(name = "ATime",nullable=true)
	private String atime;
	@Column(name = "Money",nullable=true)
	private Double money;
	
	@OneToOne
	@JoinColumn(name = "UserId", insertable = true, unique = true)
	private User user;


	public String getAccpassword() {
		return accpassword;
	}

	public void setAccpassword(String accpassword) {
		this.accpassword = accpassword;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}

	public Integer getAccountId() {
		return accountId;
	}

	public void setAtime(String atime) {
		this.atime = atime;
	}

	public String getAtime() {
		return atime;
	}


}
